package cn.sourcespro.shiro.service.impl;

import cn.sourcespro.shiro.dao.UserRoleMapper;
import cn.sourcespro.shiro.entity.UserRole;
import cn.sourcespro.shiro.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * security
 *
 * @author zhanghaowei
 * @date 2018/7/13
 */
@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private UserRoleMapper mapper;

    @Override
    public void add(UserRole userRole) {
        mapper.insert(userRole);
    }
}
